Update cachematrix.R

My solution to programming assignment 2