Basic queue implementation