Phase field modeling of dendrite growth