Parallelization of Algorithms for Neural Networks