Final version (3) of cachematrix.R