Find common difference of arithmetic sequence