private int[][] calculatePB() { const int N_TEAMS = 31; int[][] res = new int[N_TEAMS][]; for (int i = 0; i < N_TEAMS; i++) { int[] aux = new int[N_TEAMS]; for (int j = 0; j < N_TEAMS; j++) { Standing a = standings.First(s => s.ID_Team == i + 1); Standing b = standings.First(s => s.ID_Team == j + 1); aux[j] = a.Points - b.Points; } res[i] = aux; } return(res); }