Added some more utilities for matrix maths.