Update cachematrix.R

Completed programming assignment for Coursera.org, R programming course