Graham Scan implementation example