Neural network classification of flaws in pipes using ultrasonic waveforms