3Sum: Time Limit Exceeded with O(N^2) Algorithms