Labyrinth Transformation