Matrices

Work with matrices and all its functionalities. NB: Code may not be as clean as it should be. Exceptions will be added later.