Added tanh activation function layer.
Added a test for the tanh layer.