Move BinaryTree to new module
tree: Add cursor
wavelet: Use cursors
tree: Fix error output