Generic Implementation of Red Black Trees