Perfect shuffl algorithm implement in C