In CircularBuffer class Changed the thrown exception to IllegalArgumentException.