Added function to calculate the number threads from the number of cores. This function is a cubic spline that resembles the current benchmarking results.