Group duplicate books