library for manipulation of balanced binary trees