Patterns in permuted binary matrices