commit of cachematrix.R function