Maximum subarray finder and tests for it were added