Parallel algorithms for shape representation