Update cachematrix.R

My programming assignment 2: Dec 21, 2014