Using three algorithms to find the subarray  with a maximum sub.