public static double EuclideanDistance(ArrayList<Double> l1, ArrayList<Double> l2){
        if(l1.size() != l2.size()){
            System.err.print("erro in input size\n");
        }
        int size = l1.size();
        double sum = 0;
        for(int i = 0; i < size; i++){
            sum += (l1.get(i) - l2.get(i)) * (l1.get(i) - l2.get(i));
        }
        return Math.sqrt(sum);
    }