Created a mostly-working version of the Matrix object

Unfortunately, swaprow and swapcol do not work entirely just yet. Still
working on a solution.