WIP: SortedTree draft implementation