Added a simulation of Buffons needle to compute pi.