Fix insertKey to insert the correct pointer.

When inserting a key/pointer in the middle of the list of keys/pointers
(as opposed to at the end); ensure that subsequent pointers use the
correct pointer as opposed to copying the inserted pointer repeatedly.