@SuppressWarnings({ "rawtypes", "unchecked" })
	public static ArrayList read(String filename, String option) {
		ArrayList returnList = new ArrayList();
		try {
			BufferedReader bf = new BufferedReader(new FileReader(filename));
			String line = "";
			while((line = bf.readLine()) != null) {
				if(option.equals(ConfigFile.dataPointOption)) {
					// input data point
					String[] coordinate = line.split(",");
					double[] data = new double[coordinate.length];
					for(int i = 0; i < data.length; i++) {
						data[i] = Double.parseDouble(coordinate[i]);
					}
					returnList.add(data);
				} else if(option.equals(ConfigFile.dnaOption)) {
					// input dna point
					returnList.add(line);
				}
			}
			// print data set for test
			// for(int i = 0; i < returnList.size(); i++) {
			// 	System.out.println(Arrays.toString(returnList.get(i)));
			// }
			bf.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return returnList;
	}