circular queue

a different approach to circular queue