Made util to number trees depth first