Optimization of the Transport of Substances in Cells