cachematrix.R

Updated the function.