hashed array tree data structure in C++ programming language