Efficient Second Harmonic Distortion Analyzer