public double findMedianSortedArrays(int A[], int B[]) {
			int length = A.length + B.length;
			if (length % 2 == 0) {
				return (findKthValue(A, 0, B, 0, length / 2) + findKthValue(A,
						0, B, 0, length / 2 + 1)) / 2.0;
			} else {
				return findKthValue(A, 0, B, 0, length / 2 + 1);
			}
		}