Update with binary tree