Updated cachematrix.R file with my code and comments