Implement TanhLayer
Implement L2 regularization