save probs as tuple. In pattern_search: always update best_score, trim translation model according to decoder.read_translation_model with heapq
remove stack, top and beam loops