added script to optimize clusterization of TAD algorithm