Exersises 9-12. Graham scan for convex hull