wip ternary tree