Modified and tested cacheMatrix.R for Assignment 2