implemented soergel distance and his test