Added clear function to bufferLine class.