maximally selected rank statistics