tried to increase speed by openmp, but crashes more often now, especially when freeing things (double free...) hrm