Update cachematrix.R

Added function definitions.