Basic calculator: MIN, MAX, SUM, AVG operations