Finished instert_at_rank.