Calculate STD Deviation

Added function to calculate standard deviation