Update NumCompare.py

Judgement for NumCopare(algorithm)