Weighting and hashing improvements.
Changed comparison of ResultSet to use weight not length (as length is accounted for in weight).
Turned ngram hashcode into a type ngram_t.
After experimentation with 8 and 16 bit hashes, stuck with 32 bit and improved hash function.