Logistic regression search implemented and tested.