Brownian Motion
removed some C function by c++ equivalent