Graham scan, plus test case