created baseline subtraction function using MALDIquant.