Density matrices in DMRG