https://5dok.net/document/zkw6wjn1-final-exam-geometric-algorithms-march.html