getModeVector function

function to extract the mode from INLA output