Add merge container algorithm