algorithms for two bottleneck optimization problems