@staticmethod
def max_argmax(s0, sL, offset=0, n_memory=1, limit=1):
    """ Return Score and TraceBack Pointer Simultaneously
        @params s0,sL    : score of S^0_n and S^L_n.
        @params n        : index.
        @params limit    : minimum length of segment sets.
        @params n_memory : The length of memory.
        """
    if s0 >= sL:
        return s0, offset + 1 - limit
    else:
        return sL, offset + n_memory
