minor correction to shuffle algorithm