Parallel implementation of artificial neural network training