Added code for calculating relevance and frequency weights of words

Weights are assigned separately for individual passages. Instructions for constructing
a passage from paragraphs are given in a new WeighingConfiguration class.

Also added the library code for porter stemmer that we need to use for better word matching.