Updating longest consecutive sequence