Developed entropy() function

Streamlined the calculation of entropy, and added a segment() function
to parse words into syllables (this still needs more work).