Update cachematrix.R

The answer to programming assignment 2 (September 2014)