Switch ComputeTopDownOrdering over to using a densemap. This speeds up