Text this: Stochastic determination of arrival time and initial polarity of seismic waveform