Update cachematrix.R

Homework assignment modifications.