Binary and M-ary Encoding in Applications of Tree-Based Genetic Algorithms for QoS Routing