Design and Performance of Multistage Interconnection Networks: Simulation through Programming