added an add function to the circular queue