Neighbor method in detector
Currently the Clustering module is only used as 2D clustering, this MR aims to move the neighboring method from Clustering module to the Detector class, so that users can define their specific neighboring method in their detectors.