Revised other networks similarly to Netrork.
Fixed bug in _viterbi.