Added more functions to Matrices class.