add longestConsecutive.cpp