Graham scan

What you should use when solving problem #26 on the SPOJ site.