Update cachematrix.R

Turning in my homework!