Generic List implementation in C.