cachematrix file update

Solution to assignment 2 Coursera