bugprobhunt/*.R: code improvements.
bugprobhunt: "optimal testing" chapter.