First try towards generic list implementation in C