Single layer neural network