added algorithm for checking if one string is rotation of another