add maximum substring sum