fixed bug of lexer.
fixed bug of similarity calculation
added test code for shingles.py
Merge branch 'fix_shingles'