Updated cachematrix.R to complete assignment