Nucleus Algorithm