Maximum sub-array problem