Chapter 5 editDistance, fittingAlignment