hardcoded a couple of things (thread number, N, basic values set to 1) which seems to have accelerated the program.