Updated cachematrix file edited for assignment 2