ML API: added Expr.equal and Expr.compare

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>