add find the longest consecutive numbers in an array