soundSpeed function

Calculate the speed of sound in a medium