Finding the coordinates of a point between two given points