added comments to find_max_subarray