rename calculateArray to calculateRPN