A parallel algorithm for selecting activation functions of an artificial network