Skipping large data set causing segmentation fault