Working on 3sum problem, from leetcode.com