completed the volatility finding threshold function to determine when jumps occurred