Periodogram type with timing and tests
around 10x speedup compared to older functions