Numerical Methods For Deterministic And Stochastic Phase Field Models Of Phase Transition And Related Geometric Flows