implement to find convex polygen vertices and use Shamo's algorithm to calculate diameter as the furthest point pair