Polymorphic stanamically balanced binary trees