C++ Genealogical Tree