Added a lot of features to the matrix class so that in the future it can support the required simultaneous equation solving powers.