minimize total wait time