Update cachematrix.R

Completed both functions.