This function searches for cluster assigned exactly the same courses. If such clusters are found, they are merged to form a single cluster with the same number of periods/week as the original clusters.