hpc, h2pc : implementation of both algorithms