Distributional Properties of Inversions and Segmentation Algorithms for RNA Sequences