Adding inverses to importantpairs cell array and sorting.