CORE: A numerical algorithm to solve the point kinetics equations