Finds shortest path connecting all lines and the origin. (Java). COMP2911 assignment.