repractise search 2d matrix and first missing positive