Fill in the matrix with traceback pointers and show an optimal alignment