Update cachematrix.R

The second programming assignment of Dmitry Moseev