Pile-Up Discrimination Algorithms for the HOLMES Experiment