Added naive implementation of tail (last K lines)