implement a fifo array and some tests

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>