Toy example of forward-backward algorithm.

See Michael Collins's lecture for details.