Inventory Optimization for Manufacturing and Distribution Companies