Java implementation of Knuth Shuffle algorithm