Update cachematrix.R

Completed Assignment 2