Returns the n smallest values in an array.