A simple and ugly array implementation in C