CRISPR-based adaptive and heritable immunity in prokaryotes