Algorithm Merge