You need a different way to handle the equal case in the merge procedure.