Implementation of Balanced Tree Data Structures