Added onedimensional minimization.

I added support for one dimensional minimization.