On existence and uniqueness of solution of stochastic differential equations with heredity