Refactored lrem matrix computation
Refactored lrem matrix computation


Former-commit-id: 69f943e3fb85e3ed52694a47c6921d573ed30d98 [formerly 69f943e3fb85e3ed52694a47c6921d573ed30d98 [formerly a523b7c37660ef358a81f00067a56951e5c1e774]]
Former-commit-id: ba692a4dac0d5ccdd2d0db4b09fffe23f8bc3441
Former-commit-id: 19c5c8497d5d81bb54f02f3f252daa44fe49384d
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine