the first version of cachematrix.R