finished the cilkplus implementation