private void loadfromFile(String problemPath) {
		try {
			DataInputStream in = new DataInputStream(new FileInputStream(
					problemPath));
			BufferedReader br = new BufferedReader(new InputStreamReader(in));
			String line;
			boolean firstLine = true;
			int i = 0;
			int j = 0;
			while ((line = br.readLine()) != null) {
				if (line.length() > 0
						&& !(line.startsWith("//") || line.startsWith(" ") || line
								.startsWith(System
										.getProperty("line.separator")))) {
					if (firstLine) {
						size = Integer.parseInt(line);
						dist = new float[size][size];
						firstLine = false;
					} else {
						if (j >= size) {
							j = 0;
							i++;
						}
						dist[i][j] = Float.parseFloat(line);
						j++;
					}
				}
			}
			in.close();
		} catch (Exception e) {
			System.out.println("Error reading problemfile");
			e.printStackTrace();
			System.exit(1);
		}
	}