Completed cachematrix.R

Programming assignment 2 submission