This function provides the univariate version of the Cross Validation
algorithm for bandwidth selection described in Otneim & Tj<U+00F8>stheim (2017),
Section 4. Let \(\hat{f}_h(x)\) be the univariate locally Gaussian density
estimate obtained using the bandwidth \(h\), then this function returns the
bandwidth that maximizes $$CV(h) = n^{-1} \sum_{i=1}^n \log
\hat{f}_h^{(-i)}(x_i),$$ where \(\hat{f}_h^{(-i)}\) is the density estimate
calculated without observation \(x_i\).