An efficient nonparametric detection scheme and its application to surveillance of a Bernoulli process with unknown baseline