Add variables to store derivates of F1,F2 and fix size of
derivatives of kernels.