Creating the structure of a cluster Algorithm