libraries for frequency analysis