Update cachematrix.R

Completed assignment.