add rank insertion functionality to new collating alignment reading code