Update cachematrix.R

First attempt for Programming Assignment #2