supervised packing with greedy knapsack algorithm Former-commit-id: 5ded166b39a75a98ded5733678f5a1eab7d4cc71