Basics of neural networks and perceptrons