GETSEL: Gallery Entropy for Template SElection on Large datasets