Implementation of ADT in C