Queue implementation in C using linked list