Added static method insertBeforeKey()