added finding longest consecutive sequence in unsorted arr