corrected error on non-concatenated samples loop
added function to detect cores and utilize them in blast search