cachematrix.R-Assignment 2