distance formula and midpoint worksheet