Edited cacheMatrix.R per programming assignment