Polynomial solution of the spatial burmester problem