Remove useless import in algorithms.py
Added the function uniquewords_with_frequency to lex.py with test.