core: add free list data structure

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