public static void merger(LinkedList<Integer> a, LinkedList<Integer> b) {
		int apos = 0;
		int bpos = 0;
		while (apos < a.size() && bpos < b.size()) {
			if (a.get(apos) < b.get(bpos)) {
				System.out.print(a.get(apos) + " ");
				apos++;
			} else {
				System.out.print(b.get(bpos) + " ");
				bpos++;
			}
		}
		if (apos < a.size()) {
			while (apos < a.size()-1)
				System.out.print(a.get(apos++) + " ");
			System.out.println(a.get(apos));
		}
		if (bpos < b.size()) {
			while (bpos < b.size()-1)
				System.out.print(b.get(bpos++) + " ");
			System.out.println(b.get(bpos));
		}
	}