Finding slope and using slope to compare sets of data