Fast genome and metagenome distance estimation using MinHash