A Minimal Subset Approach for Efficient and Scalable Loop Closure