Simple and practical algorithms in computational geometry