Similar Items: Trajectory Optimization for Underwater Gliders Considering Depth Constraints