Move Shuffle to Java/sorting