Corrected both searching algorithms to return False