ps = performance.now()
result = insertBoxes(input)
pe = performance.now()
console.log('boxing', input.length, 'boxes done in:', pe - ps,
    'msecs and all boxes fit in just', result.length, 'boxes')
console.log(JSON.stringify(result))
Stacking boxes into fewest number of stacks efficiently?