Parallel permutation and sorting algorithms and a new generalized connection network | Synapse