Velocity compression and cooling of a sodium atomic beam using a frequency modulated ring laser