Changed the number of threads to be a default argument rather than fixed (makes converting to single threaded execution for debug purposes easier). Moved the allocation of memory for slices to be outside of the main loop to save lots of new/deletes. Changed frees at end to delete[].
Changed the number of threads to be a default argument rather than fixed (makes converting to single threaded execution for debug purposes easier).
Moved the allocation of memory for slices to be outside of the main loop to save lots of new/deletes.
Changed frees at end to delete[].

spinicist/old_QUIT,spinicist/old_QUIT,spinicist/old_QUIT,spinicist/old_QUIT