Update cachematrix.R

This is the assignment for R programing