Quantum algorithmic integrability: The metaphor of classical polygonal billiards