Bin Packing Problem with General Precedence Constraints