Fixed bug for 3Sum