Redesigning Merge Code For Efficiency