testing gradient descent algorithm for baseline detection