add obj_funcs.R evaluating the objective functions using L0 method