initial commit of working code for cachematrix script