finish max subarray second implemntation
finish search 2d matrix