Added frequency.py calculating the frequency of terms