Create Unique Binary Search Tree (pyemma)