SD function

(Weighted) Standard Deviation