Novel Algorithms For Early-Universe Cosmology