Implemented insert_left function