Basic Neural Networks Algorithms