Create a version of EditDistance that works with two rows instead of a full trellis