compute exterior of a binary tree