Some parallel algorithms