Add equal function for Num and Big_int
Add equal function for Digest module