Single-header implementation of the Johnson-Trotter algorithm