static int[] mergeArrays(int[] a, int[] b) {
		int[] helperArr = new int[a.length + b.length];
		int helperArrIndex = 0;
		int aIndex = 0;
		int bIndex = 0;

		while(aIndex < a.length && bIndex < b.length){
			if(a[aIndex] < b[bIndex]){
				helperArr[helperArrIndex++] = a[aIndex++];
			}
			else if(b[bIndex] < a[aIndex]){
				helperArr[helperArrIndex++] = b[bIndex++];
			}
			else if(a[aIndex] == b[bIndex]){
				helperArr[helperArrIndex++] = a[aIndex++];
				helperArr[helperArrIndex++] = b[bIndex++];
			}
		}

		while(aIndex < a.length){
			helperArr[helperArrIndex++] = a[aIndex++];
		}

		while(bIndex < b.length){
			helperArr[helperArrIndex++] = b[bIndex++];
		}

		return helperArr;
	}