Design and Analysis of Stochastic Processing and Matching Networks