private static void bucketSort(double[] a) {
		List<List<Double>> B = new ArrayList<List<Double>>();
		for (int i = 0; i < 10; i++) {
			B.add(new ArrayList<Double>());
		}
		for (int i = 0; i < a.length; i++) {
			List<Double> thisList = B.get((int) Math.floor(10 * a[i]));
			int j = 0;
			if (thisList.size() > 0) {
				do {
					j++;
				} while (j < thisList.size() && a[i] > thisList.get(j));
				thisList.add(j, a[i]);
			} else {
				thisList.add(a[i]);
			}
		}

		int k = 0;
		for (int i = 0; i < B.size(); i++) {
			for (int j = 0; j < B.get(i).size(); j++) {
				a[k] = B.get(i).get(j);
				k++;
			}
		}
	}