32
Use an array and keep a variable P with the first available position.
Increase P every time you add a new element.
To know the equivalent index of P in your array do (P % n) where n is the size of your array.