Upload of first version of cachematrix function