cachematrix.R updated for assignment 2 R programming coursera