Fix explicit duration viterbi

explicit_duration variable was not correctly assigned the value in the viterbi algorithm
Also fixed error generated in get_duration function where initial state traceback was leading to NULL pointer in state* st (line 299)