Fixed a nan bug by classifying number of atoms in a subset
Unioned { ctd, cst, fct, ftf } to array<array<double, 3>, 4> rpts
Precalculated the dists vector of subset0
Added comments