Binary image hit-miss operator