Resultants over commutative idempotent semirings I: Algebraic aspect. (March 2017)