add perceptron code to RBF