An optimization model for the design of rack storage systems