public int[] mergeTwoArrays(int[] A, int[] B) {
		int[] C = new int[A.length + B.length];
		int i = 0, j = 0, k = 0;
		while (i < A.length && j < B.length) {
			if (A[i] <= B[j]) {
				C[k] = A[i];
				i++;
			} else {
				C[k] = B[j];
				j++;
			}
			k++;
		}
		while (i < A.length) {
			C[k] = A[i];
			i++;
			k++;
		}
		while (j < B.length) {
			C[k] = B[j];
			j++;
			k++;
		}
		return C;
	}