func New(bin []Worker) *Allocator {
	if len(bin) == 0 {
		return nil
	}
	sort.Sort(sortWorkers(bin))
	return &Allocator{
		bin:   bin,
		i:     0,
		water: bin[0],
	}
}
// New creates a new allocator
New creates a new allocator
// New creates a new allocator
func New(bin []Worker) *Allocator {
	if len(bin) == 0 {
		return nil
	}
	sort.Sort(sortWorkers(bin))
	return &Allocator{
		bin:   bin,
		i:     0,
		water: bin[0],
	}
}
func New ( bin [ ] Worker ) * Allocator { if len ( bin ) == 0 { return nil } sort . Sort ( sortWorkers ( bin ) ) return & Allocator { bin : bin , i : 0 , water : bin [ 0 ] , } }
New creates a new allocator
New creates a new allocator