added support for pooled multigroup distances in permudistArma