Update cachematrix.R

Completed functions.