Change old-school Boolean to bool.
[Refactor] Add ZS/WE beam prunning ... functions.
[Refactor] Decompose MergeTokSet into sub-functions