use computational-geometry lib; all tests pass.