implement height balanced trees as a new datatype, perhaps in D
