Got the Matrix class to compile on Fedora, and fixed a few bugs.