Create Unique Binary Search Tree II (pyemma)