improve lc 3sumclosest O(n^2)