Very basic C problem. Main function initializes an array, then fills it up with numbers, and passes it to a helper function. Helper function seg faults for some reason, even