Changes made to cachematrix.R to complete assignment 2