Text this: Novel Peak Detection Algorithms for Pileup Minimization in Gamma Ray Spectroscopy