Queue implementation using circular linked list