Update cachematrix.R

updated. functions added