first attempt at completing implementation of Porter stemmer helper functions