Changed the prototype of cachematrix