Data cropping functions

To prepare data for lazy rebinning and removing the zero strobe peak stemming from electronic noise from the EDX detector, two data cropping functions are introduced.