Added tanh activation function layer.
Added a test for the tanh layer.
Merge pull request #116 from aravindhm/tanh

Add TanH = hyperbolic tangent activation layer (popular for sparse
autoencoders).