cosmetic
generalize longetSubseq beyond strings,ip address
simple knn classifier (float[]*string)