ranking algorithm for finding download link for version/format of book