Pre- and in-order for binary trees

Probably does not work if there are duplicate elements in the sequences.
Reformat slightly phimuemue's solution
99problems: toggle the view of phimuemue's solution