mkdir log directory when not exists
add *.pyc to .gitignore
add merge_bigram_frequency