Edited Cachematrix.R file to complete the assignment