upload amended cachematrix.R