[comparable_distance][test][extensions] Break comparable_distance into interface and implementation.

Also remove geometry.hpp header include from comparable_distance test and nsphere header included in all tests.