[WIP] epic bin merging algorithm