my first version of cachematrix.R