Matrix class done