extract _compute_prefixes
write pinyin_guess_predicted_candidates
write pinyin_choose_predicted_candidate
add methods to public api
add asserts