descendants in binary tree example site:stackoverflow.com - Search