added standard deviation methods for d3 stuff