reconstruct tree in and pre order