update algorithm-demo add FrequencyCounter