definite version cachematrix.R