Mathematics of Discrete Systems