Update cachematrix.R

Uploaded work for Programming Project 2