dynamic array? or varrying the size of the array based on something?

computerjlt:
My project measures wheel speed by measuring time between interrupts.

This might help:

Two techniques are described near the start of that thread. Counting (getting the frequency directly) and measuring the period and inverting it. One is better for low frequencies and one is better for high frequencies.