minor API improvements
API and directory structure changes & added ordered set backed by treap