Update cachematrix.R

Finished the functions