A Simple Algorithm for Determining the Envelope of a Set of Lines