Added calculator class for mathematical algorithms