Refactor merge using rank function