sparse_sd function

Calculate standard diviation from sparse vectors