Added sparse distance matrices.