# sorting network, 128 inputs; criterion sorted: the outputs are sorted on wires 0..127 [(0,2),(1,3),(4,6),(5,7),(8,10),(9,11),(12,14),(13,15),(16,18),(17,19),(20,22),(21,23),(24,26),(25,27),(28,30),(29,31),(32,34),(33,35),(36,38),(37,39),(40,42),(41,43),(44,46),(45,47),(48,50),(49,51),(52,54),(53,55),(56,58),(57,59),(60,62),(61,63),(64,66),(65,67),(68,70),(69,71),(72,74),(73,75),(76,78),(77,79),(80,82),(81,83),(84,86),(85,87),(88,90),(89,91),(92,94),(93,95),(96,98),(97,99),(100,102),(101,103),(104,106),(105,107),(108,110),(109,111),(112,114),(113,115),(116,118),(117,119),(120,122),(121,123),(124,126),(125,127)], [(0,1),(2,3),(4,5),(6,7),(8,9),(10,11),(12,13),(14,15),(16,17),(18,19),(20,21),(22,23),(24,25),(26,27),(28,29),(30,31),(32,33),(34,35),(36,37),(38,39),(40,41),(42,43),(44,45),(46,47),(48,49),(50,51),(52,53),(54,55),(56,57),(58,59),(60,61),(62,63),(64,65),(66,67),(68,69),(70,71),(72,73),(74,75),(76,77),(78,79),(80,81),(82,83),(84,85),(86,87),(88,89),(90,91),(92,93),(94,95),(96,97),(98,99),(100,101),(102,103),(104,105),(106,107),(108,109),(110,111),(112,113),(114,115),(116,117),(118,119),(120,121),(122,123),(124,125),(126,127)], [(0,52),(1,2),(3,55),(4,48),(5,6),(7,51),(8,60),(9,10),(11,63),(12,56),(13,14),(15,59),(16,32),(17,18),(19,35),(20,24),(21,22),(23,27),(25,26),(28,44),(29,30),(31,47),(33,34),(36,40),(37,38),(39,43),(41,42),(45,46),(49,50),(53,54),(57,58),(61,62),(64,116),(65,66),(67,119),(68,112),(69,70),(71,115),(72,124),(73,74),(75,127),(76,120),(77,78),(79,123),(80,96),(81,82),(83,99),(84,88),(85,86),(87,91),(89,90),(92,108),(93,94),(95,111),(97,98),(100,104),(101,102),(103,107),(105,106),(109,110),(113,114),(117,118),(121,122),(125,126)], [(0,20),(1,53),(2,54),(3,23),(4,28),(5,49),(6,50),(7,31),(8,36),(9,61),(10,62),(11,39),(12,16),(13,57),(14,58),(15,19),(17,33),(18,34),(21,25),(22,26),(24,52),(27,55),(29,45),(30,46),(32,56),(35,59),(37,41),(38,42),(40,60),(43,63),(44,48),(47,51),(64,84),(65,117),(66,118),(67,87),(68,92),(69,113),(70,114),(71,95),(72,100),(73,125),(74,126),(75,103),(76,80),(77,121),(78,122),(79,83),(81,97),(82,98),(85,89),(86,90),(88,116),(91,119),(93,109),(94,110),(96,120),(99,123),(101,105),(102,106),(104,124),(107,127),(108,112),(111,115)], [(0,4),(1,21),(2,22),(3,7),(5,29),(6,30),(8,12),(9,37),(10,38),(11,15),(13,17),(14,18),(16,20),(19,23),(24,32),(25,53),(26,54),(27,35),(28,36),(31,39),(33,57),(34,58),(40,44),(41,61),(42,62),(43,47),(45,49),(46,50),(48,52),(51,55),(56,60),(59,63),(64,68),(65,85),(66,86),(67,71),(69,93),(70,94),(72,76),(73,101),(74,102),(75,79),(77,81),(78,82),(80,84),(83,87),(88,96),(89,117),(90,118),(91,99),(92,100),(95,103),(97,121),(98,122),(104,108),(105,125),(106,126),(107,111),(109,113),(110,114),(112,116),(115,119),(120,124),(123,127)], [(0,8),(1,5),(2,6),(3,11),(4,12),(7,15),(9,13),(10,14),(16,40),(17,21),(18,22),(19,43),(20,44),(23,47),(24,28),(25,33),(26,34),(27,31),(29,37),(30,38),(32,36),(35,39),(41,45),(42,46),(48,56),(49,53),(50,54),(51,59),(52,60),(55,63),(57,61),(58,62),(64,72),(65,69),(66,70),(67,75),(68,76),(71,79),(73,77),(74,78),(80,104),(81,85),(82,86),(83,107),(84,108),(87,111),(88,92),(89,97),(90,98),(91,95),(93,101),(94,102),(96,100),(99,103),(105,109),(106,110),(112,120),(113,117),(114,118),(115,123),(116,124),(119,127),(121,125),(122,126)], [(1,9),(2,10),(4,8),(5,13),(6,14),(7,11),(12,48),(15,51),(16,24),(17,41),(18,42),(19,27),(20,28),(21,45),(22,46),(23,31),(25,29),(26,30),(32,40),(33,37),(34,38),(35,43),(36,44),(39,47),(49,57),(50,58),(52,56),(53,61),(54,62),(55,59),(65,73),(66,74),(68,72),(69,77),(70,78),(71,75),(76,112),(79,115),(80,88),(81,105),(82,106),(83,91),(84,92),(85,109),(86,110),(87,95),(89,93),(90,94),(96,104),(97,101),(98,102),(99,107),(100,108),(103,111),(113,121),(114,122),(116,120),(117,125),(118,126),(119,123),(0,64),(63,127)], [(4,16),(5,9),(6,10),(7,19),(8,24),(11,27),(13,49),(14,50),(17,25),(18,26),(20,32),(21,29),(22,30),(23,35),(28,40),(31,43),(33,41),(34,42),(36,52),(37,45),(38,46),(39,55),(44,56),(47,59),(53,57),(54,58),(68,80),(69,73),(70,74),(71,83),(72,88),(75,91),(77,113),(78,114),(81,89),(82,90),(84,96),(85,93),(86,94),(87,99),(92,104),(95,107),(97,105),(98,106),(100,116),(101,109),(102,110),(103,119),(108,120),(111,123),(117,121),(118,122)], [(1,4),(5,17),(6,18),(8,16),(9,25),(10,26),(11,19),(12,24),(15,27),(21,33),(22,34),(29,41),(30,42),(36,48),(37,53),(38,54),(39,51),(44,52),(45,57),(46,58),(47,55),(59,62),(65,68),(69,81),(70,82),(72,80),(73,89),(74,90),(75,83),(76,88),(79,91),(85,97),(86,98),(93,105),(94,106),(100,112),(101,117),(102,118),(103,115),(108,116),(109,121),(110,122),(111,119),(123,126)], [(2,8),(9,17),(10,18),(12,20),(13,25),(14,26),(15,23),(24,32),(27,35),(28,36),(31,39),(37,49),(38,50),(40,48),(43,51),(45,53),(46,54),(55,61),(66,72),(73,81),(74,82),(76,84),(77,89),(78,90),(79,87),(88,96),(91,99),(92,100),(95,103),(101,113),(102,114),(104,112),(107,115),(109,117),(110,118),(119,125),(1,65),(62,126)], [(2,4),(12,16),(13,21),(14,22),(15,19),(20,24),(23,27),(25,33),(26,34),(28,32),(29,37),(30,38),(31,35),(36,40),(39,43),(41,49),(42,50),(44,48),(47,51),(59,61),(66,68),(76,80),(77,85),(78,86),(79,83),(84,88),(87,91),(89,97),(90,98),(92,96),(93,101),(94,102),(95,99),(100,104),(103,107),(105,113),(106,114),(108,112),(111,115),(123,125)], [(4,16),(5,20),(10,40),(13,17),(14,18),(21,25),(22,26),(23,53),(24,28),(27,31),(29,33),(30,34),(32,36),(35,39),(37,41),(38,42),(43,58),(45,49),(46,50),(47,59),(68,80),(69,84),(74,104),(77,81),(78,82),(85,89),(86,90),(87,117),(88,92),(91,95),(93,97),(94,98),(96,100),(99,103),(101,105),(102,106),(107,122),(109,113),(110,114),(111,123),(2,66),(61,125)], [(3,17),(6,36),(7,21),(8,32),(9,24),(11,41),(13,28),(14,44),(15,45),(18,48),(19,49),(22,52),(25,29),(26,30),(27,57),(31,55),(33,37),(34,38),(35,50),(39,54),(42,56),(46,60),(67,81),(70,100),(71,85),(72,96),(73,88),(75,105),(77,92),(78,108),(79,109),(82,112),(83,113),(86,116),(89,93),(90,94),(91,121),(95,119),(97,101),(98,102),(99,114),(103,118),(106,120),(110,124)], [(6,20),(8,16),(10,24),(11,25),(14,28),(15,29),(17,33),(18,32),(21,37),(22,36),(26,42),(27,41),(30,46),(31,45),(34,48),(35,49),(38,52),(39,53),(43,57),(47,55),(70,84),(72,80),(74,88),(75,89),(78,92),(79,93),(81,97),(82,96),(85,101),(86,100),(90,106),(91,105),(94,110),(95,109),(98,112),(99,113),(102,116),(103,117),(107,121),(111,119)], [(3,18),(5,8),(6,12),(7,22),(15,21),(17,32),(19,33),(23,37),(26,40),(30,44),(31,46),(41,56),(42,48),(45,60),(51,57),(55,58),(67,82),(69,72),(70,76),(71,86),(79,85),(81,96),(83,97),(87,101),(90,104),(94,108),(95,110),(105,120),(106,112),(109,124),(115,121),(119,122)], [(3,16),(7,20),(11,26),(18,24),(19,25),(22,28),(23,29),(27,33),(30,36),(34,40),(35,41),(37,52),(38,44),(39,45),(43,56),(47,60),(67,80),(71,84),(75,90),(82,88),(83,89),(86,92),(87,93),(91,97),(94,100),(98,104),(99,105),(101,116),(102,108),(103,109),(107,120),(111,124)], [(3,9),(7,13),(10,16),(11,17),(14,20),(15,30),(19,34),(21,36),(23,38),(25,40),(26,32),(27,42),(29,44),(31,37),(33,48),(43,49),(46,52),(47,53),(50,56),(54,60),(67,73),(71,77),(74,80),(75,81),(78,84),(79,94),(83,98),(85,100),(87,102),(89,104),(90,96),(91,106),(93,108),(95,101),(97,112),(107,113),(110,116),(111,117),(114,120),(118,124)], [(3,8),(7,10),(9,12),(11,18),(13,14),(15,24),(17,22),(19,28),(21,26),(23,25),(27,34),(29,36),(30,32),(31,33),(35,44),(37,42),(38,40),(39,48),(41,46),(45,52),(49,50),(51,54),(53,56),(55,60),(67,72),(71,74),(73,76),(75,82),(77,78),(79,88),(81,86),(83,92),(85,90),(87,89),(91,98),(93,100),(94,96),(95,97),(99,108),(101,106),(102,104),(103,112),(105,110),(109,116),(113,114),(115,118),(117,120),(119,124)], [(3,6),(7,12),(11,16),(15,17),(18,20),(19,24),(21,22),(23,30),(25,32),(26,28),(27,29),(31,38),(33,40),(34,36),(35,37),(39,44),(41,42),(43,45),(46,48),(47,52),(51,56),(57,60),(67,70),(71,76),(75,80),(79,81),(82,84),(83,88),(85,86),(87,94),(89,96),(90,92),(91,93),(95,102),(97,104),(98,100),(99,101),(103,108),(105,106),(107,109),(110,112),(111,116),(115,120),(121,124)], [(3,5),(6,8),(7,9),(10,12),(11,13),(14,16),(15,18),(17,20),(19,21),(22,24),(23,26),(25,28),(27,30),(29,32),(31,34),(33,36),(35,38),(37,40),(39,41),(42,44),(43,46),(45,48),(47,49),(50,52),(51,53),(54,56),(55,57),(58,60),(67,69),(70,72),(71,73),(74,76),(75,77),(78,80),(79,82),(81,84),(83,85),(86,88),(87,90),(89,92),(91,94),(93,96),(95,98),(97,100),(99,102),(101,104),(103,105),(106,108),(107,110),(109,112),(111,113),(114,116),(115,117),(118,120),(119,121),(122,124)], [(3,4),(7,8),(11,12),(13,14),(15,16),(17,18),(19,20),(21,22),(23,24),(25,26),(27,28),(29,30),(31,32),(33,34),(35,36),(37,38),(39,40),(41,42),(43,44),(45,46),(47,48),(49,50),(51,52),(55,56),(59,60),(67,68),(71,72),(75,76),(77,78),(79,80),(81,82),(83,84),(85,86),(87,88),(89,90),(91,92),(93,94),(95,96),(97,98),(99,100),(101,102),(103,104),(105,106),(107,108),(109,110),(111,112),(113,114),(115,116),(119,120),(123,124),(5,69),(6,70),(9,73),(10,74),(53,117),(54,118),(57,121),(58,122)], [(3,67),(4,68),(7,71),(8,72),(11,75),(12,76),(13,77),(14,78),(15,79),(16,80),(17,81),(18,82),(19,83),(20,84),(21,85),(22,86),(23,87),(24,88),(25,89),(26,90),(27,91),(28,92),(29,93),(30,94),(31,95),(32,96),(33,97),(34,98),(35,99),(36,100),(37,101),(38,102),(39,103),(40,104),(41,105),(42,106),(43,107),(44,108),(45,109),(46,110),(47,111),(48,112),(49,113),(50,114),(51,115),(52,116),(55,119),(56,120),(59,123),(60,124)], [(32,64),(33,65),(34,66),(35,67),(36,68),(37,69),(38,70),(39,71),(40,72),(41,73),(42,74),(43,75),(44,76),(45,77),(46,78),(47,79),(48,80),(49,81),(50,82),(51,83),(52,84),(53,85),(54,86),(55,87),(56,88),(57,89),(58,90),(59,91),(60,92),(61,93),(62,94),(63,95)], [(16,32),(17,33),(18,34),(19,35),(20,36),(21,37),(22,38),(23,39),(24,40),(25,41),(26,42),(27,43),(28,44),(29,45),(30,46),(31,47),(48,64),(49,65),(50,66),(51,67),(52,68),(53,69),(54,70),(55,71),(56,72),(57,73),(58,74),(59,75),(60,76),(61,77),(62,78),(63,79),(80,96),(81,97),(82,98),(83,99),(84,100),(85,101),(86,102),(87,103),(88,104),(89,105),(90,106),(91,107),(92,108),(93,109),(94,110),(95,111)], [(8,16),(9,17),(10,18),(11,19),(12,20),(13,21),(14,22),(15,23),(24,32),(25,33),(26,34),(27,35),(28,36),(29,37),(30,38),(31,39),(40,48),(41,49),(42,50),(43,51),(44,52),(45,53),(46,54),(47,55),(56,64),(57,65),(58,66),(59,67),(60,68),(61,69),(62,70),(63,71),(72,80),(73,81),(74,82),(75,83),(76,84),(77,85),(78,86),(79,87),(88,96),(89,97),(90,98),(91,99),(92,100),(93,101),(94,102),(95,103),(104,112),(105,113),(106,114),(107,115),(108,116),(109,117),(110,118),(111,119)], [(4,8),(5,9),(6,10),(7,11),(12,16),(13,17),(14,18),(15,19),(20,24),(21,25),(22,26),(23,27),(28,32),(29,33),(30,34),(31,35),(36,40),(37,41),(38,42),(39,43),(44,48),(45,49),(46,50),(47,51),(52,56),(53,57),(54,58),(55,59),(60,64),(61,65),(62,66),(63,67),(68,72),(69,73),(70,74),(71,75),(76,80),(77,81),(78,82),(79,83),(84,88),(85,89),(86,90),(87,91),(92,96),(93,97),(94,98),(95,99),(100,104),(101,105),(102,106),(103,107),(108,112),(109,113),(110,114),(111,115),(116,120),(117,121),(118,122),(119,123)], [(2,4),(3,5),(6,8),(7,9),(10,12),(11,13),(14,16),(15,17),(18,20),(19,21),(22,24),(23,25),(26,28),(27,29),(30,32),(31,33),(34,36),(35,37),(38,40),(39,41),(42,44),(43,45),(46,48),(47,49),(50,52),(51,53),(54,56),(55,57),(58,60),(59,61),(62,64),(63,65),(66,68),(67,69),(70,72),(71,73),(74,76),(75,77),(78,80),(79,81),(82,84),(83,85),(86,88),(87,89),(90,92),(91,93),(94,96),(95,97),(98,100),(99,101),(102,104),(103,105),(106,108),(107,109),(110,112),(111,113),(114,116),(115,117),(118,120),(119,121),(122,124),(123,125)], [(1,2),(3,4),(5,6),(7,8),(9,10),(11,12),(13,14),(15,16),(17,18),(19,20),(21,22),(23,24),(25,26),(27,28),(29,30),(31,32),(33,34),(35,36),(37,38),(39,40),(41,42),(43,44),(45,46),(47,48),(49,50),(51,52),(53,54),(55,56),(57,58),(59,60),(61,62),(63,64),(65,66),(67,68),(69,70),(71,72),(73,74),(75,76),(77,78),(79,80),(81,82),(83,84),(85,86),(87,88),(89,90),(91,92),(93,94),(95,96),(97,98),(99,100),(101,102),(103,104),(105,106),(107,108),(109,110),(111,112),(113,114),(115,116),(117,118),(119,120),(121,122),(123,124),(125,126)],