add max sub array brute-force and liner increase method