Speech recognition lattice-generating algorithm with forward-backward language model: Speech recognition lattice-generating algorithm with forward-backward language model