done Matrix class with some functionality