medvol function

Function that calculates the standard deviation