aligning frequencies to powers of 2