Exact distributions of multiple comparisons rank statistics