Update cachematrix.R

This is the final copy of cachematrix