1. A method of indexing comprising: providing a database of templates; grouping the database into a plurality of sub-databases; and wherein: each template in the database has a first number of bits; each sub-database of the plurality of sub-databases represents virtually all templates in the database; each template in a sub-database has a second number of bits; and the first number is greater than the second number.