Move sorter network code to encodeUZK