Loop Closure Detection via Locality Preserving Matching With Global Consensus