PALCE and PEEL programming algorithms