Created recursive clone object function