AVL tree representation in C++ which is used to find the connectivity to a communication network