Optimal group testing algorithms for infectious disease detection with the binGroup package