Fixed treap building bug; added treap construction from iterables in Python