A pyramidal approach to convex hull and filling algorithms