A 2-dimensional linked list in C