Implemented insertAfter and deleteAtLoc