Frustrated Synapse: Neural Network Training Algorithm