update ApproximatePatternCount, FrequentWordwithMismatches and HamingDistance classes