Hide implementation details of EditCommands, performance improvements to myers algorithm: pre-process equal elements at start/end of sequences.