added NFData instances for Perceptron