adding computing of optimal groups

a function form the package clustsig that allows for computing the most statistically significant number of groups was added. This functions performs simulations and is thus computationally demanding. Do not run unless necessary. It is still running on the sample files.