Update binary tree