Adding standard deviation function. This mimics PHP's stats_standard_deviation PECL function