Added Matrix class.