Create Balanced Binary Tree (pyemma)