KWPrimal function

Primal optimization for Kiefer-Wolfowitz problems