Fixed some memory leaks, it is possible to reinitialize the search without having to reread the ph and dur files
bug fix for lmhist token init
Merge pull request #5 from lingsoft/memleak_fix

Vesa's memleak fixes.