Boolean Expression for Logic Gates - Search