Add chachematrix.R file