Fully documented matrix class.