add mat_in_or_out_Search
Merge branch 'second_period' of github.com:lifang/lantan_BAM into second_period