code: func (ef *FeeEstimator) newEstimateFeeSet() *estimateFeeSet {
  	set := &estimateFeeSet{}
  
  	capacity := 0
  	for i, b := range ef.bin {
  		l := len(b)
  		set.bin[i] = uint32(l)
  		capacity += l
  	}
  
  	set.feeRate = make([]SatoshiPerByte, capacity)
  
  	i := 0
  	for _, b := range ef.bin {
  		for _, o := range b {
  			set.feeRate[i] = o.feeRate
  			i++
  		}
  	}
  
  	sort.Sort(set)
  
  	return set
  }
docs: // newEstimateFeeSet creates a temporary data structure that
  // can be used to find all fee estimates.