added option for randomized alphabet (memoized hashing trick).

tweaks to datestr

added function for comparing vectors (useful for testing).

added cosine,linf,Mixture