public void sort(double[] input) {
		int n = input.length;
		boolean swapped = true;
		for (int end = n; swapped; end--) {
			swapped = false;
			for (int i = 1; i < end; i++) {
				if (!Helper.less(input, i - 1, i)) {
					Helper.exch(input, i - 1, i);
					swapped = true;
				}
			}
		}
	}