Implement deepEqual()