cachematrix.R with annotation