Updated cachematrix.R with two functions