Discrete Systems In Quantum And Statistical Mechanics