Added function PolyOut

One of those mentioned in #63