The speeds of coronal mass ejections in the solar wind at mid heliographic latitudes: Ulysses