added IV distribution

Added a function to calculate the IV-distribution of the given corpus
Added a function to write the calculated IV-distribution to a file