caculate a binary tree coordinate.