Algorithm for checking if two strings are anagrams.  //C++