working version of beam search (test time only), a bunch of memory/bug fixes, and new searn-related test cases