System Building Blocks for Mathematical Operators Using Stochastic Resonance