Computing the cycles in the perfect shuffle permutation