some algorithms of maxSubArray in python