added a boundscheck=False
changed result to a struct with 3 doubles, also commented nogils to enable profiling
change DP struct to C array, results to references. Still slow though...
uncommenting nogils to enable parallelism again