[calculator] added api interfaces and operator implementations.