Exact polynomial eigensolutions of the Schrodinger equation for the pseudoharmonic potential