Classical computational geometry algorithms