FOSortedSet is now implemented as a self balancing binary search tree, using the AVL tree algorithm.