Fixed min_wrapper bug (for Regression)

Can now optimize parameters for regression, although classification is
still broken