modifying the cachematrix file to complete the course assignment