Finds the midpoint between two points