Model and Algorithm for the Vendor-Warehouse Transportation and Inventory Problem in a Three-Level D