maths::Matrix related external functions

Added external matrix arithmetic operations.

Added functions relating to determinants, identity matrices, matrix
transposition.