Demo: the forward-backward algorithm