A two-sample Anderson-Darling rank statistic