updated the equal case of merging to deal with the event that the patient being inserted is the last of the 'high' list