Application of Logic Gates - Search