Remove static Pregel; take maxIterations in dynamic Pregel

Static Pregel duplicates the functionality in dynamic Pregel, so this PR removes the former and adds a maxIterations argument to the latter.