add description of forward algorithm.