CUDA based perceptron implementation