void permute(int subtask, int N, int V[], int R[])
{
    int i;
    for(i = 0; i < N; ++i)
        R[i] = V[i];
}
