Added rotate method to Anagram class