separate lsh and candidate pairs extraction