Scaffolding for the iyen algorithm.