Rank-Up-Magic Overlay Gate