Gradient is column vector now.
Started to refactor numerical derivatives.