public void sortColors(int[] A) {
		if (A.length <= 1)
			return;
		int red = 0, index = 0, blue = A.length - 1;
		while (index <= blue) {
			if (A[index] == 0) {
				int temp = A[red];
				A[red++] = A[index];
				A[index++] = temp;
				continue;
			}
			if (A[index] == 2) {
				int temp = A[blue];
				A[blue--] = A[index];
				A[index] = temp;
				continue;
			}
			index++;
		}
	}