Combining Logic Gates - Search