Add function to print backtrace. Add utility to compute edit distance between a string and a fst. Improve support for log-linear weights.