add the implemention of lock free queue with counted reference