Added a reverse words in a phrase algorithm