Update cachematrix.R

Added the code to the functions