private void generatePermutationSimilarityVector(int[] permSimilarities,
			int[] wordIndexes) {
		for (int instanceIdx = 0; instanceIdx < instances.length; ++instanceIdx) {
			int i = 0;
			for (int permutationIdx : wordIndexes) {
				if (attributeExistence[permutationIdx][instanceIdx] == 1) {
					permSimilarities[instanceIdx] = i;
					break;
				}
				++i;
			}
		}
	}