Update series_major_element.cpp