binary tree with short codes