updated Matrix class
removed unnecessary code