Bug in monte-carlo pi example