new memo table, forward algorithm to go with backward algorithm