a nice circular queue using java