Began working on frequency_mean
Merged with latest master.
Completed #frequency_mean