Frequency distribution of elements in rocks