Eliminates nearby local maximas from flat peaks