A modified wavelet multigrid method for the numerical solution of boundary value problems