Telephone directory
Inheritance

As problem has promised that given polygon is convex,only sorting is
needed to get the polygon's edges.