parallel version of SortNet