move lexicon utility methods to Util
multiXor
a weighing function that works with multiXor