pick the last max node, add utility functions, updates
ensure match preference when equiv to gap in traceback

checkpoint, do not use.
solid