Explicit threads and OpenMP implementation. Prefsummation is still inefficient