given two compatible unsorted orders Optimize should yield the sum of
prices