implementation of cloneDeep

see #455 
Thanks!