Rename MatrixBase to MatrixObject
Move N and M to MatrixObject
Remove unnecessary code