Princeton Algorithm Course. Draw lines if it contains more than 4 points.