Reverse Polish Notation Caclulator in Java6, Java7, Python and Scala