implements cloneDeep
Merge pull request #462 from donnut/cloneDeep

implementation of cloneDeep