[Core] Simplify implem of MathUtil.NearEqual. Add some tests for testing precisely ULP tests