1. A method of selecting a database from a corpus, the method comprising: defining a size of a database; calculating a coefficient for at least one pair in a set of pairs; and executing a function to select each entry to be saved in the database until a number of entries of the database equals the size of the database.