moved clustering codebase to its own routine
removed older cluster-processing routine