add 2d and 3d region grow

add 2d and 3d region grow