Numerical Simulation of Three-Dimensional Dendritic Growth of Alloy: Part I—Model Development and Test