implemented the functions getX() and GetY() in PolarPosition class.

Contributes to #14