initial commit of cachematrix R code