public int pack(int[] partSizes, int[] boxSizes) {
		int boxPointer = 0;
		int hit = 0;
		for (int pointer = 0; pointer < partSizes.length;) {
			if (partSizes[pointer] <= boxSizes[boxPointer]) {
				boxSizes[boxPointer] -= partSizes[pointer];
				hit++;
				pointer++;
			}
			boxPointer++;
			if (boxPointer == boxSizes.length) {
				break;
			}

		}
		return hit;
	}