Getting a segfault in the end but the speed is increased 3X. The non-gnumpy code takes around 6mims for dataset range 555 to 755 while it takes around 2 mins for the gnumpy code