added mathmonk resources to forward-backward algorithm