Completed - not bug tested cachematrix for assignment 2