Adding search algorithm to Dictionary