node's assert.deepEqual algorithm