• + 1 comment

    one row to store "history of a line " is enough, which is swapped with current row on end