Modify input/output argument in comparapb.
Since minFunc only accepts column vector as the input argument and derivatives, we modify comparapb to make it compatible.