Prefixed class constants with _
Calculating deletions and additions with a buffer for replaced lines
File content reconstructed in three steps (calculate changes, apply, changes, flatten content)