Perpendicular bisectors, eqn of lines and gradients