Conformation of cyclodipeptides: Part 8. The model-building algorithm