Corrected treble/bass j/i logic
Improved output formatting
Multiple changes:

Moved bass permutaion under treble scope
Used critical values to call for the last perm
Swapped i & j in the output