forward algorithm
Merge pull request #2 from Lyon-NEU/master

forward algorithm