Greedy BFS solution for reversal distance.