Black-Scholes Implied Volatility code C++