Title: Minimal Time Detection Algorithm