Update cachematrix.R

Just doing my homework.