corrected version of anagram.rb to the one with unrepeated code in the permute function.