Perceptrons and their applications