Dynamically resizable array for C