added beam.h back, beginning to do beam search
templatized beam
beam search working, added test for non-ldf mode
added missing files
minor bug fix in ldf, beam in ldf now working, test added
Merge pull request #440 from hal3/master

beam search working at test time, other minor bug fixes