define the ntoys in a single, common place for all algorithms