cachematrix.R commited (without comments)