A simple model for grain refinement during solidification