add variant of shuffle-type functions for logical