compute only n smallest local minima