initial commit
extract to problem-specific functions
extract to problem-specific functions, make iteration function
folding, more on 1.2, initial extra comments, try adding figure in 1.5