Update cachematrix.R

made the functions