Array implementation in C