expand function

Expands a frequency vector to a vector