Added Algorithms and Shortest Segment Problem