Fixed speed of sorting of modules.
Improved generation of clusters.
Improved ordering.
Finished improvimg heuristics.