improved Xiaolin Wu, no more redundant points