add approximator for perpendicular distance
remove unneeded includes
use floats instead of doubles for distance computations