1.Sort the list.
2.Calculate the absolute value of [i]-[i-1] and [i]-[i+1].
3.choose the less one and add it into the summary.