cachematrix.R

Updated code for programming assignment 2