bezier: use the original distance method
bezier: use the original distance method

now the cubic solver is functional the old code appears correct, and it
seems to be more concise and more rigorously derived.

gim/libgim,gim/libgim,gim/libgim