reordering_to_file method added, fixes of bugs in calculating reordering
probabilities.