update and group Longest_Consecutive_Sequence