work on a generic Balanced binary search tree based on red black trees