Added same function

This function computes a deep equality where each term in the derivative sequence must be equal.
correctly implemented sgn