array blocking queue implementation.