problem 6 (matrix mult) for assignment 3