if the user supplies a betas matrix, parallelise the SD calculations
if the user supplies a betas matrix, parallelise the SD calculations