public static ArrayList<ArrayList<Double>>getKNNResult(ArrayList<Double>x){
		ArrayList<ArrayList<Double>>distanceResult=getDistanceResult(x);
		ArrayList<ArrayList<Double>>KNNDis=new ArrayList<ArrayList<Double>>();
		for(int i=0;i<k+1;i++){
			for(int j=0;j<distanceResult.size()-i-1;j++){
				if(distanceResult.get(j).get(0)>distanceResult.get(j+1).get(0)){
					ArrayList<Double>temp=distanceResult.get(j);
					distanceResult.set(j, distanceResult.get(j+1));
					distanceResult.set(j+1, temp);
				}
			}
		}
		for(int m=distanceResult.size()-2-k+1;m<=distanceResult.size()-2;m++){
			KNNDis.add(distanceResult.get(m));
		}
		return KNNDis;
	}