Refactored solve to allow operators with variable numbers of operands.
Refactored solve to allow operators with variable numbers of operands.

roberthitt/calculator,roberthitt/calculator,roberthitt/calculator