The solution of Cahn-Allen equation based on Bernoulli sub-equation method