Update cachematrix.R

Completed the body of the functions