Scan1 cilk code passing simple tests