Added faster implementation of tail using circular buffer with max line length