working example fo ITK block matching dir code