Change the append method to overwrite the oldest element for adding a new one if the buffer was already full
Before no new elements were added when the buffer was full.