Dynamic programming algorithms for producing food mixture packages by automatic combination weighers