Pass vector<NUM_TYPE> sortd_ind2gcube_list by reference, NOT by value.