Update cachematrix.R

Personal solution of the Assignment 2.