Added xmfunctional_iteration.h: going to code up the algorithm now.