Accelerated det_connections
Accelerated openmp