Update cachematrix.R

Modified to update code definitions