Create frequency_ped.cpp

calculate frequency --ped file version
output: final_frequency.freq