Design and performance of a general class of interconnection networks