Update to the cachematrix.R

Calling packages has not been done within the functions