Sane weighting for ngram matches.
 - Changed search result weighting to float
 - Weighting as segment of mx+c weighting
 - Store correct length melody (was fixed-size, not always accurate)