overloaded tanh for complex
moved tanh to utility module