Implement fundamental data structures

Here are some of the fundamental data structures for retcon.