Implement multiply method in Matrix class