Added euc dist, first-order diff, and peak finder