modify mat_in_or_out_search
Merge branch 'second_period' of github.com:lifang/lantan_BAM into second_period