Merge pull request #405 from ndawe/master

epic bin merging algorithm