Foundations of Neural Networks Architecture