A basic implementation of C++-esque vectors in c