An introduction to perceptrons