Measurements of the Velocity of Sound in Liquid Argon and Liquid Methane