In memory shuffle