matematical labyrinth