cilk: fixed segfault; fixed thread arg/output; added reference solution