Optimizing the search algorithm for protein engineering by directed evolution