The Polynomial class which I initially wrote in Python for an exercise, now translated to other languages (C++,Java)