private void combinationUtil(int arr[], int data[], int start,
			int end, int index, int r) {
		if (index == r) {
			int sum = 0;
			
			for (int j = 0; j < r - 1; j++) {
				for(int k=j+1;k<r;k++){
					sum+=compatibilityArr[data[j]][data[k]];
				}
			}
//			System.out.println("sum = "+sum);
			if (sum > maxTeamCompatibility) {
				maxTeamCompatibility = sum;
				outputIndexArr = data.clone();
			}
			
		}

		for (int i = start; i <= end && index < r; i++) {
				data[index] = i;
				combinationUtil(arr, data, i + 1, end, index + 1, r);
		}

	}