Implement the trigamma(x) function