add predict and some minor change
add costFunctionRegu