added succmath.pl and minor cleanup on detectivepuzzle.pl