Added methions to merge two branches.