Finding the slope of a line using two points