Quantum algorithmic integrability: the metaphor of classical polygonal billiards