Update twosum.cpp