CPU implementation of Tanh neuron