adding simplified data processing algorythm that find the time difference between the trigger and the largest value of the signal