修改WithDBSCAN的distance方法为protected