longest consecutive sequence, use hashmap, search forwards and backwards, erase counted ones