First version of Graham convex hull finding (not the prettiest code ever, but works)