Hreidarsson agrees Pompey stay