Refactor code into core/matrix/utils.clj
Add test
Add known implementations mapping