“The algorithm is thought to highlight suspicious behaviors such as visiting a mosque or owning too many books.”