Finding near neighbors through cluster pruning