ADD: group return for IndividualInSpace and index
REF: getDistanceMatrix -> getProbabilityMatrix