#176 More refactoring
#1009 Matrix return type for det, getMinor and cofactor
Could result in a performance loss, but the implementation is not efficient anyway.
No deprecation since users (and unit tests) have relied on automatic typecasting to Matrix.