Chromosome recognition and statistics C++