First attempt at graham scan.