Update cachematrix.R

Done with Peer assessment assignment