cachematrix.R update

Completed programming assignment 2