Implemantion of 2-3 tree in c++