Reinstate forwad algorithm

We don't really need the posterior, anyway, and it's waaaaaaaay slower
than forward.