Find all unique triplets

Find all unique triplets in the array(contains duplicates) which gives the sum of zero.
题目中数组可包含重复元素，需剪枝加速。speed O(n2): 两头夹逼