runable 1D multigrid method