Combination of Logic Gates - Search