Simulation of dendritic competitive growth during directional solidification using modified cellular automaton method