added Porter stemmer helper functions