added rotate sentence algorithm