programming assignment 2

updating cacheMatrix.R with the solution to the programming assignment