Write a program that finds the shortest distance between the two line segments defined by the user. Let the user left- and right-click twice to define the two segments.