Numerical study of the two-dimensional Heisenberg model using a Green function Monte Carlo technique with a fixed number of walkers