added uniform distributed character string generator
implemented heuristic algorithm