A simple vector-like struct in C