Skeleton for redo of algorithm basedon Gordon paper.