Implemented the Matrix4 class.