Functions to count cycles that have not all-S. Also fixed a bug with the max.matching. It used to hang when the ouput was 1.0000 i.e. there were some numerical inaccuracies.Added some smoothing of the values after they have been calculated