sequence memory inference functions, no learning yet