findPattern function

Find specific IBD patterns