Reworked binary tree.