Maximum Subarray Problem: Design and Analysis of New Sequential and Parallel Algorithms