pub fn calculate_realized_volatility(returns: &[f64]) -> f64
Calculate realized volatility with vectorization