Implemented insertKey with test for #4