protected int[][] readCTR(String filename) {
FileReader f;
String line;
TIntList values = new TIntArrayList();
try {
f = new FileReader(filename);
BufferedReader r = new BufferedReader(f);
List<int[]> ints = new ArrayList<int[]>();
while ((line = r.readLine()) != null) {
Scanner sc = new Scanner(line);
values.add(sc.nextInt());
values.add(sc.nextInt());
sc.next();
values.add(sc.next().equals("=") ? 0 : 1);
values.add(sc.nextInt());
ints.add(values.toArray());
values.clear();
}
int[][] data = new int[ints.size()][];
for (int i = 0; i < ints.size(); i++) {
data[i] = ints.get(i);
}