Changed parallel algorithm and modified compiler