get number of CPUs for parallization
incremental
added parallel implementation - currently disabled since it appears to hang for large data sets
removed broken parallel implementation