Parallelized Clustering - todo subroutine loops