Add vector pop function