fraction ADT in C