Implied Volatility of a Put Option in C++