public List<Double[]> splitFolder(String imageFolderLocation, int row, int col) throws IOException {
		File folder = new File(imageFolderLocation);
		File[] files = folder.listFiles();
		List<Double[]> list = new ArrayList<Double[]> ();
		for (File file : files) {
	     	if (file.isFile() && file.getName().substring(file.getName().length() - 4).equals(".jpg")) {
	        	  String name = imageFolderLocation + file.getName();
			      List<Double[]> sublist = split(name, row, col);
			      list.addAll(sublist);
			}
	    }
		return list;
	}