Implemented Searching Algorithm