update Longest_Consecutive_Sequence using HashSet