Polynomial kernel gradients wrt X working.
Implemented MLP gradients with respect to X.