add cache pointer to dmatrix