Combinatorial Neural Network Training Algorithm for Neuromorphic Computing