generated the data for training perceptron