incube: Obtain CPU count to adjust worker thread count

In a many core system, worker thread count will be increased for better
performance.  Not-so-many core systems will not suffer from excess
threads.
Add simplex noise with double type

We could use function templates to generalize the algorithms for both
float and double, but I don't feel like it's worth taking time to
rewrite the codes to achieve it.