updated binary tree cpp