Update cachematrix.R

Added functions