Changed the thrown exception to IllegalArgumentException.
Merge pull request #117 from GayashanNA/CircularBuffer-Exception-fix

In CircularBuffer class Changed the thrown exception to IllegalArgumentException.