speed up phrase_range/1. Fix calculation of probs: cast to float.