More changes to matrix class

Working on the inverse function