Artificial neural network algorithms for pulse shape discrimination and recovery of piled-up pulses in organic scintillators. (October 2018)