Text this: A Fast and Reliable Solution to PnP, Using Polynomial Homogeneity and a Theorem of Hilbert