Last mile optimization: how to reduce delivery costs